﻿using Ping9719.WpfEx.Mvvm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AutoFlatnessTest.ViewModel
{
    public class UcHomeVModel : BindableBase
    {
        public Dictionary<string, string> Proj_ = new Dictionary<string, string>();

        private bool isStart = false;
        /// <summary>
        /// 是否启动
        /// </summary>
        public bool IsStart
        {
            get { return isStart; }
            set { isStart = value; RaisePropertyChanged(nameof(IsStart)); }
        }


        /// <summary>
        /// 项目
        /// </summary>
        public Dictionary<string, string> Proj { get => Proj_; set { Proj_ = value; RaisePropertyChanged(nameof(Proj)); } }


        public string WorkOrde_;
        /// <summary>
        /// 工单
        /// </summary>
        public string WorkOrde { get => WorkOrde_; set { WorkOrde_ = value; RaisePropertyChanged(nameof(WorkOrde)); } }


        public string Info1_;
        /// <summary>
        /// 工单
        /// </summary>
        public string Info1 { get => Info1_; set { Info1_ = value; RaisePropertyChanged(nameof(Info1)); } }

        private bool islrmsOk = true;

        public bool IsLrmsOk
        {
            get { return islrmsOk; }
            set { SetProperty(ref islrmsOk, value); }
        }

        private string riCount;

        public string RiCount { get => riCount; set { SetProperty(ref riCount, value); } }

        private string number;

        public string Number { get => number; set { SetProperty(ref number, value); } }

        /// <summary>
        /// 抽测值
        /// </summary>
        public List<string> CcVal { get; set; }

        private string ccValSelect;

        public string CcValSelect { get => ccValSelect; set { SetProperty(ref ccValSelect, value); } }


        private MoShi moShi = MoShi.标准;

        public MoShi MoShi
        {
            get { return moShi; }
            set { SetProperty(ref moShi, value); }
        }

        /// <summary>
        /// 录入值
        /// </summary>
        public List<decimal> InputVal { get; set; }

        private decimal? inputValSelect;

        public decimal? InputValSelect
        {
            get { return inputValSelect; }
            set { SetProperty(ref inputValSelect, value); }
        }


    }
}
